package com.achen.service.impl;

import com.achen.dao.CardbscDao;
import com.achen.pojo.Cardbsc;
import com.achen.service.CardbscService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author limeng
 * @create 2021-06-28 15:19
 */
@Service
@Transactional
public class CardbscServiceImpl implements CardbscService {

    @Autowired
    private CardbscDao cardbscDao;

    @Override
    public List<Cardbsc> findAll() {
        return cardbscDao.selectList(null);
    }

    @Override
    public Cardbsc findByCardnoAndPassword(String cardno, String password) {
        return cardbscDao.findByCardnoAndPassword(cardno, password);
    }

}
